<template>
  <div>
    <el-container>
      <el-header class="header">
        <h1>HR管理系统</h1>
      </el-header>
      <el-container>
        <el-aside class="aside" width="200px">

          <el-menu router :default-active="$router.path"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>员工管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="1-1">招聘管理</el-menu-item>
                <el-menu-item index="1-2">面试管理</el-menu-item>
                <el-menu-item index="1-2">入职管理</el-menu-item>
                <el-menu-item index="/emp"><i class="el-icon-user-solid"></i>员工管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>社保管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="1-1">社保导入导出</el-menu-item>
                <el-menu-item index="1-2">社保查询</el-menu-item>
                <el-menu-item index="1-2">社保缴纳</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>

        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "Home",

}

</script>

<style scoped>
.el-header, .el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
}
.el-header h1 {
  line-height:30px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 200px;
  height: 1000px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;

  height: 1000px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
